﻿using System.ComponentModel;
using System.Web.UI;
using Ext.Net;

namespace KamLib.Controls
{

    [ParseChildren(true, "Items")]
    public class RecordWindow : Window
    {

        [DefaultValue("x-window-mc2")]
        public override string BodyCssClass
        {
            get { return ViewState.Try("BodyCssClass", "x-window-mc2"); }
            set { base.BodyCssClass = value; }
        }

        [DefaultValue(false)]
        public override bool Border
        {
            get { return ViewState.Try("Border", false); }
            set { base.Border = value; }
        }

        [DefaultValue(true)]
        public override bool Hidden
        {
            get { return ViewState.Try("Hidden", true); }
            set { base.Hidden = value; }
        }

        [DefaultValue(true)]
        public override bool Collapsible
        {
            get { return ViewState.Try("Collapsible", true); }
            set { base.Collapsible = value; }
        }

        [DefaultValue(CloseAction.Close)]
        public override CloseAction CloseAction
        {
            get { return ViewState.Try("CloseAction", CloseAction.Close); }
            set { base.CloseAction = value; }
        }
        

        [DefaultValue("Anchor")]
        public override string Layout
        {
            get { return ViewState.Try("Layout", "Anchor"); }
            set { base.Layout = value; }
        }

    }

}